var urlImg = new Array();
var urlLink = new Array();;
var urlTitle = new Array();;
var urlButton = ["../jQueryProject/assets/images/botonlleno.png","../jQueryProject/assets/images/botonvacio.png"];
var n=1;

function easier_rs_setInfo(data) {
    for(var i = 0; i < data.length; i++) {
        urlImg[i] = data[i][2];
        urlTitle[i] = data[i][1];
        urlLink[i] = data[i][0];
    }
}

function easier_rs_images() {
    var i = jQuery("#easier_responsive_slider");
    var buttons = jQuery(".boton").toArray();
    if (n == 0) {
        jQuery(i).attr("src", urlImg[n]);
        /*jQuery(buttons[0]).attr("src", rutaBoton[0]);
        jQuery(buttons[1]).attr("src", rutaBoton[1]);
        jQuery(buttons[buttons.length-1]).attr("src", rutaBoton[1]);*/
        //jQuery("#button_a").text("Introducción");
        //jQuery("#button_a").attr("href", "index.php?do=showIntro");
        jQuery("#easier_rs_link").attr("href", urlLink[n]);
        n++;
    }
    else if (n == urlImg.length-1) {
        jQuery(i).attr("src", urlImg[n]);
        /*jQuery(buttons[0]).attr("src", rutaBoton[1]);
        jQuery(buttons[n]).attr("src", rutaBoton[0]);
        jQuery(buttons[n-1]).attr("src", rutaBoton[1]);
        jQuery("#button_a").text("Selectores");
        jQuery("#button_a").attr("href", "index.php?do=showSelectors");*/
        jQuery("#easier_rs_link").attr("href", urlLink[n]);
        n=0;
    }
    else {
        jQuery(i).attr("src", urlImg[n]);
        /*var num = buttons.length-1;
        jQuery(buttons[num]).attr("src", rutaBoton[1]);
        jQuery(buttons[n]).attr("src", rutaBoton[0]);
        jQuery(buttons[n-1]).attr("src", rutaBoton[1]);
        jQuery("#button_a").text("Cheatsheet");
        jQuery("#button_a").attr("href", "index.php?do=showCheat");*/
        jQuery("#easier_rs_link").attr("href", urlLink[n]);
        n++;
    }
	
}

